public class Main {
    public static void main(String[] args) {
        Simulator s = new Simulator();
        Animal m1 = new Dog();
        s.playSound(m1);

        Animal m2 = new Cat();
        s.playSound(m2);
    }
}